package com.github.jspxnet.worktask.core.job;


import com.github.jspxnet.worktask.model.enums.FlowNodeEnumType;
import com.github.jspxnet.worktask.model.enums.WorkTaskEnumType;

/**
 * 无条件进入下一个流程节点
 */
public class NoneJobTask extends BaseTaskAction{
    @Override
    public boolean execute() throws Exception {
        currentWorkTask.setUsers(workTaskParam.getUsers());
        currentWorkTask.setWorkTaskType(WorkTaskEnumType.NONE.getValue());
        currentWorkTask.setFlowNodeType(FlowNodeEnumType.END.getValue());
        runtimeServiceDAO.update(currentWorkTask,new String[]{"flowNodeType","workTaskType","users"});
        return true;
    }
}
